package com.andova.toolkit.net.oss;

import android.app.Application;
import android.content.Context;

import com.alibaba.sdk.android.oss.OSSClient;
import com.alibaba.sdk.android.oss.common.auth.OSSCredentialProvider;

/**
 * Created by Administrator on 2017-09-18.
 *
 * @author kzaxil
 * @since 1.0.0
 */
class OssUploadClient extends OSSClient {
    private Context context;

    OssUploadClient(Context context, String endpoint, OSSCredentialProvider credentialProvider) {
        super(context, endpoint, credentialProvider);
        if (context instanceof Application) {
            this.context = context;
        } else {
            this.context = context.getApplicationContext();
        }
    }

    public Context getContext() {
        return context;
    }
}
